home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu087.dms
/
pu087.adf
/
top
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-06
|
483b
|
27 lines
/* Test file to test the optimser */
#include <stdio.h>
#define ISWHITE(c) ((c) == '\t' || (c) == ' ' || (c) == '\n')
fun1(s)
char *s;
{/* test the while loop */
static char label[20];
register int i;
printf("Enter loop |%s|\n",s);
i = 0;
while(*s && !ISWHITE(*s))
label[i++] = *s++;
label[i] = '\0';
printf("leave loop |%s| |%s| %d\n",s,label,i);
}
main(argc,argv)
int argc;
char *argv;
{
fun1("L3: foo\n");
}